/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package view;

import model.DB2Hash;
/**
 *
 * @author aeguzkiza
 */
public class Device {
    Integer id;
    DB2Hash device;

    public Device(DB2Hash device){
        this.id = Integer.parseInt(device.get("Id"));
        this.device = device;
    }

    public DB2Hash getDevice(){
        return device;
    }
    public Integer getDeviceId(){
        return id;
    }
    public String toString() {
        String node = device.get("StationName");
        return node;
    }
}
